import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
// import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'ic:sharp-soap',
      keepAlive: true,
      order: 12,
      title: '店铺授权',
    },
    name: 'ShopAuth',
    path: '/shop-auth',
    redirect: '/shop-auth/shop-auth-home',
    children: [
      {
        meta: {
          title: '店铺授权',
          hideInMenu: true,
        },
        name: 'ShopAuthHome',
        path: '/shop-auth/shop-auth-home',
        component: () => import('#/views/shopAuth/home.vue'),
      },
      {
        meta: {
          title: '1688授权',
          hideInMenu: true,
          hideInTab: true,
          hideInBreadcrumb: true,
        },
        name: 'shogun1688',
        path: '/shop-auth/shop-auth-home-1688',
        component: () => import('#/views/shopAuth/home1688.vue'),
      },
      {
        meta: {
          title: '铺货授权',
          hideInMenu: true,
          hideInTab: true,
          hideInBreadcrumb: true,
        },
        name: 'shogunDLY',
        path: '/shop-auth/shop-auth-home-dly',
        component: () => import('#/views/shopAuth/homedly.vue'),
      },

      // {
      //   meta: {
      //     title: '下单授权',
      //     hideInMenu: true,
      //     hideInTab: true,
      //     hideInBreadcrumb: true,
      //   },
      //   name: 'shogunYPY',
      //   path: '/shop-auth/shop-auth-home-ypy',
      //   component: () => import('#/views/shopAuth/homeypy.vue'),
      // },
    ],
  },
];

export default routes;
